<template>
  <div class="form-section" v-if="formData.config.has_value">
    <el-row :gutter="20">
      <el-col :xs="24" :sm="12" :md="12">
        <el-form-item-plus
          :label="$t('menu.dev.action.field.setting_value', '设置值')"
          :tooltipContent="
            $t(
              'menu.dev.action.tip.setting_value',
              '请输入上面选中的字段，需要设置的值',
            )
          "
          prop="config.setting_value"
        >
          <el-input
            :placeholder="$p('menu.dev.action.field.setting_value', '设置值')"
            v-model="formData.config.setting_value"
          />
        </el-form-item-plus>
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
import { smartTranslate as $t, transPlaceholder as $p } from '@/lang';

defineProps({
  formData: {
    type: Object,
    required: true,
  },
});
</script>

<style lang="scss" scoped></style>
